package com.cyf.wechat.network.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Pattern;

/**
 * Created by cage on 2017/9/21.
 */
@ApiModel("被访客同意或拒绝访问请求")
public class WechatProcessVisitReq extends WechatBusinessReq {

    @ApiModelProperty(value = "处理结果：1-同意访问，2-拒绝访问", required = true)
//    @Pattern(regexp="^(1|2)$", message = "参数processedResults错误")
    @Range(min = 1, max = 2, message = "参数processedResults错误")
    private Integer processedResults;
    @ApiModelProperty(value = "订单id", required = true)
    private int orderId;
    @ApiModelProperty(value = "拒绝理由", required = true)
    private String rejectMemo;

    public Integer getProcessedResults() {
        return processedResults;
    }

    public void setProcessedResults(Integer processedResults) {
        this.processedResults = processedResults;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getRejectMemo() {
        return rejectMemo;
    }

    public void setRejectMemo(String rejectMemo) {
        this.rejectMemo = rejectMemo;
    }
}
